<?
	session_start();
	mysql_connect("localhost","root","root");
	mysql_select_db("database");
	$strSQL = "SELECT * FROM member_mcdr_cl,member_mcdr_dr WHERE mcdr_cl_email = '$txtUsername' and mcdr_cl_password = '$txtPassword' or mcdr_dr_email = '$txtUsername' and mcdr_dr_password = '$txtPassword' ";
 	$objQuery = mysql_query($strSQL);
	$objResult = mysql_fetch_array($objQuery);
	if(!$objResult)
	{
			
			echo "Username and Password Incorrect!";
			echo "<br> Go to <a href='C-Dr.php'>Back</a>";
			
	}
	else
	{
			setcookie("USER",$txtUsername,time()+3600*24);
				header("location:C-Dr-member.php");
			
	}
	mysql_close();
?>